<extend name="Common/common"/>
<block name="main">
	<div class="aui-content" id="mycontain">
		<div class="me-concen">
			<span><span class="me-concern-dc me-click">关注的医生</span><span class="me-concern-dc"><a href="{:U('/Patient/Patient/Person/concern_clinic')}" style="color:#000">关注的诊所</a></span></span>
		</div>
        <volist name="list" id="vo">
			<div class="aui-row me-mydoc-bo" data-url="{:U('/Patient/Patient/Patient/doctor_main',array('id'=>$vo['doctor_id']))}">
			<div class="aui-col-xs-2"><img src="{$vo.image}" onerror="this.src='__IMG__/head1.png'" class="me-mydoc-img"></div>
			<div class="aui-col-xs-10  me-mydoc-left">
    			<div class="aui-row">
    				<div class="aui-col-xs-8"><span class="me-mydoc-p">{$vo.name}</span><span class="me-star">
                        <img src="__IMG__/starclick.png"></span><span class="me-fenshu"><span class="me-mydoc-p">{$vo.score}</span></span></div>
    				<div class="aui-col-xs-4">
                        <span class="me-mydc-yuyue">
                            <span class="me-mydc-yuyue delte" data-id="{$vo.id}">删除</span>
                        </span>
					</div>
    			</div>
    			<p class="me-mydoc-sep">{$vo.clinic}</p>
    			<p class="me-mydoc-sep">擅长：{$vo.good}.</p>
			</div>
		</div>
        </volist>
	</div>
</block>
<block name="js">
    <script type="text/javascript" src="__JS__/getmore.js"></script>
    <script type="text/javascript">
        //设置分页信息
        myobj = {
            total:'{$count}',
            step:'{$size}',
            url:"{:U('concern_doctor_more')}",
            obj:'mycontain'
        };
		//点击跳转到医生首页
		$('#mycontain').on('click','.me-mydoc-bo',function(e){
			if(e.target.innerHTML=='删除'){ //删除不触发
				return;
			}
			var url = $(this).data('url');
			if(!url) return;
			location.href = url;
		});
		//删除
		var issend = false;
		$('#mycontain').on('click','.delte',function(e){
			if(issend) return false;
			issend = true;
			var id=$(this).data('id');
			var _this = this;
			$.post(location.href,{id:id},function(data){
				issend = false;
				if(data.code==0){
					$(_this).closest('.me-mydoc-bo').remove();
				}else{
					layer.msg('data.msg');
				}
			},'json');
			return false;
		});
    </script>
</block>